﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SingleCharacterInfo : MonoBehaviour
{
    public Character character;
    public Text characterName;
    public Text characterHp;
    public Text characterSp;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void Refresh()
    {
        characterName.text = character.data.characterName;
        characterHp.text = "Hp     " + character.currentHp + "/" + character.data.maxHp;
        characterSp.text = "Sp     " + character.currentSp + "/" + character.data.maxSp;
    }
}
